package com.fangcun.mapper;

import java.util.List;

import com.fangcun.bean.api.agent.InvitationRecordResponse;
import com.fangcun.bean.api.agent.InvitationResponse;
import com.fangcun.entity.Agent;

public interface AgentMapper {
	int deleteByPrimaryKey(Long id);

	int insert(Agent record);

	int insertSelective(Agent record);

	Agent selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Agent record);

    int updateByPrimaryKey(Agent record);
    /***********************************/
    Agent selectByUserId(Long userId);
    
    List<Agent> listForAdmin(Agent request);
    
	List<Agent> selectByParentId(Long parentId);
	
	List<InvitationResponse> selectByParentIds(Long parentId);
	/**邀请页面的  三个记录**/
	InvitationRecordResponse selectByRecord(Long userId);
	
	


}